package com.yzx.yzxaop.aopTest;

import com.yzx.yzxaop.annotation.*;
import com.yzx.yzxaop.annotation.Error;

@Aspect(value = "aspect01")
public class AspectTest {

    @Before
    public void before(){
        System.out.println("前置增强");
    }
    @After
    public void after(){
        System.out.println("后置增强");
    }
    @Error
    public void error(){
        System.out.println("事务回滚...");
    }
}
